package com.project.ssm.service;

import com.project.ssm.domain.Role;
import com.project.ssm.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface IUserService extends UserDetailsService {
    //查询所有用户信息
    public List<UserInfo> findAll() throws Exception;
    //保存（添加）用户信息
    public void save(UserInfo userInfo) throws Exception;

    public UserInfo findById(Integer id) throws Exception;

    public List<Role> findOtherRole(Integer id) throws  Exception;

    public void addRoleToUser(Integer userId, Integer[] roleIds) throws Exception;
}
